package com.xm;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/**
 * 启动程序
 * 
 * @author xm
 */
//使用lombok的@Slf4j，帮我们创建Logger对象，效果与下方获取日志对象一样
@Slf4j
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class XmApplication
{

    /**
     * 获取日志对象，构造函数传入当前类，查找日志方便定位
     */
    private final Logger logger = LoggerFactory.getLogger(this.getClass());


    public static void main(String[] args)
    {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(XmApplication.class, args);

    }
}
